import request from "@/utills/request";

export const getApplyJobResult=(data:any)=>{
  return request({
    method: "POST",
    url: "/api/user/getApplyJobResult",
    data,
  })
}
export const userAccountCancellation=(data: any)=> {
  return request({
    method: "POST",
    url: "/api/user/userAccountCancellation",
    data,
  })
}
export const upUserCollectionJob=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upUserCollectionJob",
    data,
  })
}
export const getUserCollectionJobs=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/getUserCollectionJobs",
    data,
  })
}
export const getUserApplyJobs=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/getUserApplyJobs",
    data,
  })
}
export const upUserEmail=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upUserEmail",
    data,
  })
}
export const upUserPhone=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upUserPhone",
    data,
  })
}
export const upUserPwd=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upUserPwd",
    data,
  })
}
export const vUserPwd=(data: any)=> {
  return request({
    method: "POST",
    url: "/api/user/vUserPwd",
    data,
  })
}

export const getOneJobInfo=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/getOneJobInfo",
    data,
  })
}
export const upCollectionJob=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upCollectionJob",
    data,
  })
}
export const applyJob=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/applyJob",
    data,
  })
}

export const upUserInfo=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/upUserInfo",
    data,
  })
}
export const getUserInfo=(data: any) =>{
  return request({
    method: "POST",
    url: "/api/user/getUserInfo",
    data,
  })
}

export default {
  upUserInfo,
  getUserInfo,
  getUserApplyJobs,
  applyJob,
  upCollectionJob,
  getOneJobInfo,
}

